package model

import "gorm.io/gorm"

type Article struct {
	gorm.Model
	UserId    int    `gorm:"type:int;not null;" json:"user_id"`
	Title     string `gorm:"type:varchar(50);" json:"title"`
	Context   string `gorm:"type:text;not null;" json:"context"`
	LikeCount int    `gorm:"type:int;not null;default:0;" json:"like_count"`
}
